﻿using Jy.Abp.App.Application.Contracts;
using Jy.Abp.BlobStoring;
using Jy.Abp.Services;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;

namespace Jy.Abp.App.HttpApi;

[ApiController]
[Route("/api/[controller]/[action]")]
//[SwaggerTag("Controller for todo")]
public class TestController : AbpController
{
    [HttpPost]
    [ServiceGroup("Test1")]
    public IActionResult Index(TestInput input)
    {
        return Content("test");
    }

    [HttpGet]
    [ServiceGroup("Test2")]
    public IActionResult Index1(TestEnum @enum)
    {
        return Content("test1");
    }


    [HttpPost]
    [ServiceGroup("Test2")]
    public IActionResult Index2(BlobAutoDirType @enum)
    {
        return Content("test2");
    }

    [HttpPost]
    [ServiceGroup("Test2")]
    public IActionResult Index3([FromForm] BlobUploadInput @enum)
    {
        return Content("test2");
    }
}
